//
// Created by ChenJi on 2021/4/17.
//

#ifndef WARNER_2_INTERACTION_HANDLE_H
#define WARNER_2_INTERACTION_HANDLE_H

#endif //WARNER_2_INTERACTION_HANDLE_H

#include "main.h"


#define MAIN_INTERFACE_ID 0x10
#define SYSTEM_LOGGER_ID 0x11

#define SENSOR_STATE_ID 0x13
#define SYSTEM_SETTING_ID 0x12

void Interact_Handle_Main_Thread_Execute();

void activeSystemLogger();

void EX_Interact_Handle_Init();

void negativeSystemLogger();

/**
 * main interface
 */
void drawDefeatStatePicture(uint8_t state);

void clearDefeatStatePicture();

void setLCDButtonLabelPointer(uint8_t buttonid, uint8_t *label_id);

void setLCDButtonLabel(uint8_t buttonid, uint8_t label_id);

void chenge_Defeat_state(uint8_t defeat_state);

void execute_Main_Interface_handle();

void negative_Main_interface_handle();

void active_Main_Interface_handle();

__weak void onDefeat_Disable_Apply();

__weak void onDefeat_Enable_Apply();

void execute_LoggerCutdownPage();

void systemLoggerCutdownPage();

void systemLoggerAddpage();

void active_System_setting_Interface_handle();

void negative_System_setting_interface_handle();

void active_Sensor_State_Interface_handle();

void negative_Sensor_State_Interface_handle();
void active_sensors_state_handle();
void negative_sensors_state_handle();
__weak void reloadMainInterfaceEvent(uint8_t *state);
